package com.hand.yd24378.spring_practice;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WaveLee
 * @date 2019/7/12 14:43
 */
@RestController
public class Person {
    //确定要注入的具体实现类
    @Resource(name = "CH")
    private ISay iSay;

    @GetMapping("/sayHello")
    public String sayHello(){
        return iSay.sayHello();
    }
}
